<template>
  <div>
    <h1 v-color="wordColor">hello vue</h1>
    <button @click="wordColor = 'red'">修改颜色</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      wordColor: "green",
    };
  },
};
</script>

<style></style>
